﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SanPham_Entry.ascx.cs" Inherits="cbmobile.UserControl.SanPham_Entry" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>

<script type="text/javascript">

    var activeArea = null;
    var winW = 0;
    var winH = 0;
    var clickX = 0;
    var clickY = 0;
    function GetWindowSize() {
        if (navigator.appName.indexOf("Microsoft") != -1) {
            winH = document.body.clientHeight;
            winW = document.body.clientWidth;
        } else {
            winH = window.innerHeight;
            winW = window.innerWidth;
        }
    }
    function GetMouseXY(e) {
        if (navigator.appName.indexOf("Microsoft") != -1) { // grab the x-y pos.s if browser is IE
            clickX = e.clientX + document.body.scrollLeft
            clickY = e.clientY + document.body.scrollTop
        } else {  // grab the x-y pos.s if browser is NS
            clickX = e.pageX
            clickY = e.pageY
        }
        // catch possible negative values in NS4
        if (clickX < 0) clickX = 0;
        if (clickY < 0) clickY = 0;
        return true
    }

    function AreaContains(parent, child) {
        while (child)
            if (parent == child) return true;
            else
                child = child.parentNode;

        return false;
    }
    function PopupAreaMouseOut(e) {
        if (!e)
            var e = window.event;
        var targ = e.relatedTarget ? e.relatedTarget : e.toElement;
        if (activeArea != null && !AreaContains(activeArea, targ)) {
            activeArea.style.display = 'none';
            activeArea = null;
        }
    }

    function PopupArea(e) {
        // get viewing size 
        GetWindowSize();
        GetMouseXY(e);

        // hide the old area
        if (activeArea != null) {
            activeArea.style.display = 'none';
        }

        // pop-up area
        var popupArea = document.getElementById("divImageProduct");
        popupArea.style.position = 'absolute';
        popupArea.style.display = 'inline';
        popupArea.style.zIndex = "9999";
        popupArea.style.top = clickY - 78 + 'px';
        popupArea.style.left = clickX + 10 + 'px';

        popupArea.onmouseout = PopupAreaMouseOut;
        document.body.appendChild(popupArea);

        // keep the pop-up area
        activeArea = popupArea;
    }

    function ShowImage(event, isShow) {

        if (isShow == 0) {
            document.getElementById("divImageProduct").style.display = 'none';
            return false;
        } else {
            PopupArea(event);
            return false;
        }

    }

</script>


<script type="text/javascript">
    function validateChooseDropList(oSrc, args) {
        args.IsValid = (args.Value != '0');
    }
</script>


<div class="sb-box">
    <div class="header">
        <h3>
            Thông tin Sản phẩm</h3>
    </div>
    <div class=" clear">
    </div>
    <div class="bcont">
        <div class="selection">
            <asp:FormView ID="frmBlogCate" CellPadding="0" runat="server" 
                DataSourceID="ObjectDataSource1" ondatabound="frmBlogCate_DataBound" 
                onitemdeleted="frmBlogCate_ItemDeleted" 
                oniteminserted="frmBlogCate_ItemInserted" 
                oniteminserting="frmBlogCate_ItemInserting" 
                onitemupdating="frmBlogCate_ItemUpdating">
                <EditItemTemplate>
                    <table border="0">
                        <tr>
                            <td class="setup01">
                                Mã sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblTenSP" runat="server" Text='<%# Bind("Ma_SP") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Tên sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtMaSP" runat="server" Text='<%# Bind("Ten_SP") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Trọng lượng
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtTrongLuong" runat="server" Text='<%# Bind("TrongLuong") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hệ điều hành
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtHDH" runat="server" Text='<%# Bind("HeDieuHanh") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                CPU
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtCPU" runat="server" Text='<%# Bind("CPU") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ổ cứng
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtOCung" runat="server" Text='<%# Bind("OCung") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                RAM
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtRAM" runat="server" Text='<%# Bind("RAM") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Support 3G
                            </td>
                            <td class="setup02">
                                <asp:CheckBox ID="ckSupport" runat="server" Checked='<%# Bind("Support_3G") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Kết nối 3G
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtKetNoi3G" runat="server" Text='<%# Bind("KetNoi3G") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Wifi
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtWifi" runat="server" Text='<%# Bind("Wifi") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Camera
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtCamera" runat="server" Text='<%# Bind("Camera") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Trạng thái kho
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtTrangThaiKho" runat="server" Text='<%#Eval("TrangThaiKho") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Tình trạng
                            </td>
                            <td class="setup02">
                                <asp:DropDownList ID="ddlStatus" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Bảo hành
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtBaoHanh" runat="server" Text='<%# Bind("BaoHanh") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hành công ty
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtHangCongTy" runat="server" Text='<%# Bind("HangCongTy") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Phụ kiện
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtPhuKien" runat="server" Text='<%# Bind("PhuKien") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ưu đãi
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtUuDai" runat="server" Text='<%# Bind("UuDai") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Mã hãng sản xuất
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtHangSX_ID" runat="server" Text='<%# Bind("HangSX_ID") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Thông số kỹ thuật
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtThongSoKT" runat="server" Text='<%# Bind("ThongSoKyThuat") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Mô tả sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtMoTaSP" runat="server" Text='<%# Bind("MoTaSanPham") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hình ảnh
                            </td>
                            <td class="setup02">
                                <span style="float: left; margin-right: 10px;">
                                    <asp:FileUpload ID="fileImage" runat="server" Width="90%" />
                                </span>
                                <span onmouseover="return ShowImage(event, 1);" onmouseout="return ShowImage(event, 0);" style="float: left;">
                                    <asp:Label ID="lblImage" runat="server" ForeColor="BlueViolet" Style="cursor: pointer" Text='<%#Bind("HinhAnh") %>' ></asp:Label>
                                </span>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Only png, jpeg,jpg or gif files are allowed!"
                                    Display="None" ValidationGroup="CheckProduct" ValidationExpression="^(\w.*)+(.png|.PNG|.jpeg|.JPEG|.jpg|.JPG|.gif|.GIF)$"
                                    ControlToValidate="fileImage">
                                </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Lượt hiển thị
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtLuotHienThi" runat="server" Text='<%# Bind("Count_View") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Giá thị trường
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtGiaThiTruong" runat="server" Text='<%# Bind("GiaThiTruong") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Giá công ty
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtGiaCongTy" runat="server" Text='<%# Bind("GiaCongTy") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ngày tạo
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtNgayTao" runat="server" Text='<%# Bind("NgayTao") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="C pdT10" colspan="2">
                                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                        CommandName="Update" Text="Update" CssClass="button" ><span>Update</span></asp:LinkButton>
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CssClass="button" 
                        CausesValidation="False" CommandName="Cancel" Text="Cancel" ><span>Cancel</span></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                    
                </EditItemTemplate>
                <InsertItemTemplate>
                    <table border="0">
                        <tr>
                            <td class="setup01">
                                Tên sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtMaSP" runat="server" Text='<%# Bind("Ten_SP") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Trọng lượng
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtTrongLuong" runat="server" Text='<%# Bind("TrongLuong") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hệ điều hành
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtHDH" runat="server" Text='<%# Bind("HeDieuHanh") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                CPU
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtCPU" runat="server" Text='<%# Bind("CPU") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ổ cứng
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtOCung" runat="server" Text='<%# Bind("OCung") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                RAM
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtRAM" runat="server" Text='<%# Bind("RAM") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Support 3G
                            </td>
                            <td class="setup02">
                                <asp:CheckBox ID="ckSupport" runat="server" Checked='<%# Bind("Support_3G") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Kết nối 3G
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtKetNoi3G" runat="server" Text='<%# Bind("KetNoi3G") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Wifi
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtWifi" runat="server" Text='<%# Bind("Wifi") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Camera
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtCamera" runat="server" Text='<%# Bind("Camera") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Trạng thái kho
                            </td>
                            <td class="setup02">
                                <asp:Textbox ID="txtTrangThaiKho" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Tình trạng
                            </td>
                            <td class="setup02">
                                <asp:DropDownList ID="ddlStatus" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Bảo hành
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtBaoHanh" runat="server" Text='<%# Bind("BaoHanh") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hành công ty
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtHangCongTy" runat="server" Text='<%# Bind("HangCongTy") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Phụ kiện
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtPhuKien" runat="server" Text='<%# Bind("PhuKien") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ưu đãi
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtUuDai" runat="server" Text='<%# Bind("UuDai") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Mã hãng sản xuất
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtHangSX_ID" runat="server" Text='<%# Bind("HangSX_ID") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Thông số kỹ thuật
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtThongSoKT" runat="server" Text='<%# Bind("ThongSoKyThuat") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Mô tả sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtMoTaSP" runat="server" Text='<%# Bind("MoTaSanPham") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hình ảnh
                            </td>
                            <td class="setup02">
                                <span style="float: left; margin-right: 10px;">
                                    <asp:FileUpload ID="fileImage" runat="server" Width="90%" />
                                </span>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Only png, jpeg,jpg or gif files are allowed!"
                                    Display="None" ValidationGroup="CheckProduct" ValidationExpression="^(\w.*)+(.png|.PNG|.jpeg|.JPEG|.jpg|.JPG|.gif|.GIF)$"
                                    ControlToValidate="fileImage">
                                </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Lượt hiển thị
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtLuotHienThi" runat="server" Text='<%# Bind("Count_View") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Giá thị trường
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtGiaThiTruong" runat="server" Text='<%# Bind("GiaThiTruong") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Giá công ty
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtGiaCongTy" runat="server" Text='<%# Bind("GiaCongTy") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ngày tạo
                            </td>
                            <td class="setup02">
                                <asp:TextBox ID="txtNgayTao" runat="server" Text='<%# Bind("NgayTao") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="C pdT10" colspan="2">
                                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CssClass="button"
                        CommandName="Insert" Text="Insert" ><span>Insert</span></asp:LinkButton>
                    &nbsp;<a href='<%=this.ListLink %>' class="button"><span>Cancel</span></a>
                            </td>
                        </tr>
                    </table>
                    
                </InsertItemTemplate>
                <ItemTemplate>
                    <table border="0">
                        <tr>
                            <td class="setup01">
                                Mã sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblTenSP" runat="server" Text='<%# Bind("Ma_SP") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Tên sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblMaSP" runat="server" Text='<%# Bind("Ten_SP") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Kích thước
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblKichThuoc" runat="server" Text='<%# Bind("KichThuoc") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Trọng lượng
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblTrongLuong" runat="server" Text='<%# Bind("TrongLuong") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hệ điều hành
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblHDH" runat="server" Text='<%# Bind("HeDieuHanh") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                CPU
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblCPU" runat="server" Text='<%# Bind("CPU") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ổ cứng
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblOCung" runat="server" Text='<%# Bind("OCung") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                RAM
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblRAM" runat="server" Text='<%# Bind("RAM") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Support 3G
                            </td>
                            <td class="setup02">
                                <asp:CheckBox ID="ckSupport" runat="server" Checked='<%# Bind("Support_3G") %>' Enabled="false" />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Kết nối 3G
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblKetNoi3G" runat="server" Text='<%# Bind("KetNoi3G") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Wifi
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblWifi" runat="server" Text='<%# Bind("Wifi") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Camera
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblCamera" runat="server" Text='<%# Bind("Camera") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Trạng thái kho
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblTrangThaiKho" runat="server" Text='<%#Eval("TrangThaiKho") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Tình trạng
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lbl_Stt" runat="server" Text='<%#Bind("TinhTrang") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Bảo hành
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblBaoHanh" runat="server" Text='<%# Bind("BaoHanh") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hành công ty
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblHangCongTy" runat="server" Text='<%# Bind("HangCongTy") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Phụ kiện
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblPhuKien" runat="server" Text='<%# Bind("PhuKien") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ưu đãi
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblUuDai" runat="server" Text='<%# Bind("UuDai") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Mã hãng sản xuất
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblHangSX_ID" runat="server" Text='<%# Bind("HangSX_ID") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Thông số kỹ thuật
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblThongSoKT" runat="server" Text='<%# Bind("ThongSoKyThuat") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Mô tả sản phẩm
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblMoTaSP" runat="server" Text='<%# Bind("MoTaSanPham") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Hình ảnh
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblHinhAnh" runat="server" Text='<%# Bind("HinhAnh") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Lượt hiển thị
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblLuotHienThi" runat="server" Text='<%# Bind("Count_View") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Giá thị trường
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblGiaThiTruong" runat="server" Text='<%# Bind("GiaThiTruong") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Giá công ty
                            </td>
                            <td class="setup02">
                                <asp:Label ID="lblGiaCongTy" runat="server" Text='<%# Bind("GiaCongTy") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="setup01">
                                Ngày tạo
                            </td>
                            <td class="setup02">
                                <asp:Label ID="txtNgayTao" runat="server" Text='<%# Bind("NgayTao") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="C pdT10" colspan="2">
                                <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CssClass="button"
                        CommandName="Edit" Text="Edit" ><span>Edit</span></asp:LinkButton>
                    &nbsp;<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" CssClass="button" OnClientClick='return confirm("Do you want delete this item?");'
                        CommandName="Delete" ><span>Delete</span></asp:LinkButton>
                    &nbsp;<a href='<%=this.ListLink %>' class="button"><span>Cancel</span></a>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:FormView>
        
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                DeleteMethod="Delete" InsertMethod="Create" SelectMethod="Get_SanPham_byId" 
                TypeName="cbmobile.BLC.BLC_SanPham" UpdateMethod="Update" 
                oninserting="ObjectDataSource1_Inserting" 
                onupdating="ObjectDataSource1_Updating">
                <DeleteParameters>
                    <asp:QueryStringParameter DefaultValue="1" Name="Ma_SP" 
                        QueryStringField="Ma_SP" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="Ten_SP" Type="String" />
                    <asp:Parameter Name="Size" Type="String" />
                    <asp:Parameter Name="TrongLuong" Type="String" />
                    <asp:Parameter Name="HeDieuHanh" Type="String" />
                    <asp:Parameter Name="CPU" Type="String" />
                    <asp:Parameter Name="OCung" Type="String" />
                    <asp:Parameter Name="RAM" Type="String" />
                    <asp:Parameter Name="Support_3G" Type="Boolean" />
                    <asp:Parameter Name="KetNoi3G" Type="String" />
                    <asp:Parameter Name="Wifi" Type="String" />
                    <asp:Parameter Name="Camera" Type="String" />
                    <asp:Parameter Name="TrangThaiKho" Type="Int32" />
                    <asp:Parameter Name="TinhTrang" Type="Int32" />
                    <asp:Parameter Name="BaoHanh" Type="String" />
                    <asp:Parameter Name="HangCongTy" Type="String" />
                    <asp:Parameter Name="PhuKien" Type="String" />
                    <asp:Parameter Name="UuDai" Type="String" />
                    <asp:Parameter Name="HangSX_ID" Type="Int32" />
                    <asp:Parameter Name="ThongSoKyThuat" Type="String" />
                    <asp:Parameter Name="MoTaSanPham" Type="String" />
                    <asp:Parameter Name="HinhAnh" Type="String" />
                    <asp:Parameter Name="Count_View" Type="Int32" />
                    <asp:Parameter Name="GiaThiTruong" Type="Decimal" />
                    <asp:Parameter Name="GiaCongTy" Type="Decimal" />
                </InsertParameters>
                <SelectParameters>
                    <asp:QueryStringParameter DefaultValue="0" Name="Ma_SP" 
                        QueryStringField="Ma_SP" Type="Int32" />
                </SelectParameters>
                <UpdateParameters>
                    <asp:QueryStringParameter DefaultValue="0" Name="Ma_SP" QueryStringField="Ma_SP" Type="Int32" />
                    <asp:Parameter Name="Ten_SP" Type="String" />
                    <asp:Parameter Name="Size" Type="String" />
                    <asp:Parameter Name="TrongLuong" Type="String" />
                    <asp:Parameter Name="HeDieuHanh" Type="String" />
                    <asp:Parameter Name="CPU" Type="String" />
                    <asp:Parameter Name="OCung" Type="String" />
                    <asp:Parameter Name="RAM" Type="String" />
                    <asp:Parameter Name="Support_3G" Type="Boolean" />
                    <asp:Parameter Name="KetNoi3G" Type="String" />
                    <asp:Parameter Name="Wifi" Type="String" />
                    <asp:Parameter Name="Camera" Type="String" />   
                    <asp:Parameter Name="TrangThaiKho" Type="Int32" />
                    <asp:Parameter Name="TinhTrang" Type="Int32" />
                    <asp:Parameter Name="BaoHanh" Type="String" />
                    <asp:Parameter Name="HangCongTy" Type="String" />
                    <asp:Parameter Name="PhuKien" Type="String" />
                    <asp:Parameter Name="UuDai" Type="String" />
                    <asp:Parameter Name="HangSX_ID" Type="Int32" />
                    <asp:Parameter Name="ThongSoKyThuat" Type="String" />
                    <asp:Parameter Name="MoTaSanPham" Type="String" />
                    <asp:Parameter Name="HinhAnh" Type="String" />
                    <asp:Parameter Name="Count_View" Type="Int32" />
                    <asp:Parameter Name="GiaThiTruong" Type="Decimal" />
                    <asp:Parameter Name="GiaCongTy" Type="Decimal" />
                </UpdateParameters>
            </asp:ObjectDataSource>
        </div>
    </div>
</div>
<div id="divImageProduct" style="display: none; background-color: Gray; padding: 2px">
    <div style="padding: 3px; background-color: White">
        <asp:Image ID="imgProduct" runat="server" Width="200px" />
    </div>
</div>